// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ESSCmdImpl.java

package com.vandagroup.common.bo;

import com.vandagroup.common.exp.ESSCommandExecuteException;
import java.sql.SQLException;

// Referenced classes of package com.vandagroup.common.bo:
//            ESSObject, ESSCmd, ESSBean

public abstract class ESSCmdImpl extends ESSObject
    implements ESSCmd
{

    protected ESSBean dataBean;

    public ESSCmdImpl()
    {
        dataBean = null;
    }

    public void execute()
        throws ESSCommandExecuteException
    {
        try
        {
            performExecute();
        }
        catch(SQLException ex)
        {
            ESSCommandExecuteException exception = new ESSCommandExecuteException();
            exception.setCommandName(getClass().getName());
            exception.setException(ex);
            throw exception;
        }
    }

    public abstract void performExecute()
        throws ESSCommandExecuteException, SQLException;

    public ESSBean getDataBean()
    {
        return dataBean;
    }

    public void setDataBean(ESSBean dataBean)
    {
        this.dataBean = dataBean;
    }
}
